exports.data = {
	json: {
		kind: 'Snippet',
		body: ['"t-notice-bar": "tdesign-miniprogram/notice-bar/notice-bar"'],
		detail: 'NoticeBar 通知栏',
		documentation: `在app.json或index.json中引入组件`,
	},
	wxml: {
		kind: 'Snippet',
		body: ['<t-notice-bar${1} />'],
		detail: 'NoticeBar 通知栏',
		documentation: `用于循环播放展示一组消息通知。`,
		attrs: [
			{
				kind: 'Field',
				body: ['content='],
				detail: 'content',
				documentation: '通知文本内容',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['interval='],
				detail: 'interval',
				documentation: '间隔时间【仅在 direction=vertical 有效】。',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['visible='],
				detail: 'visible',
				documentation: '是否开启滚动播放，内容长度溢出时默认开启',
				vals: {
					kind: 'Value',
					body: ['true', 'false'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['default-visible='],
				detail: 'default-visible',
				documentation: '是否开启滚动播放，内容长度溢出时默认开启',
				vals: {
					kind: 'Value',
					body: ['true', 'false'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['direction='],
				detail: 'direction',
				documentation: '滚动方向。可选项：horizontal/vertical',
				vals: {
					kind: 'Value',
					body: ['horizontal', 'vertical'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['theme='],
				detail: 'theme',
				documentation: '内置主题。可选项：info/success/warning/error',
				vals: {
					kind: 'Value',
					body: ['info', 'success', 'warning', 'error'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['color='],
				detail: 'color',
				documentation: '通知文本颜色',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['background='],
				detail: 'background',
				documentation: '滚动条背景',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['prefix-icon='],
				detail: 'prefix-icon',
				documentation:
					'前缀图标。值为字符串表示图标名称，值为 false 表示不显示前缀图标，值为 Object 类型，表示透传至 icon，不传表示使用主题图标',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['suffix-icon='],
				detail: 'suffix-icon',
				documentation:
					'后缀图标。值为字符串表示图标名称。值为 Object 类型，表示透传至 icon，不传表示不显示后缀图标。',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['delay='],
				detail: 'delay',
				documentation: '动画延迟时间 (ms)',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['speed='],
				detail: 'speed',
				documentation: '滚动速率 (px/s)',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['scrollable='],
				detail: 'scrollable',
				documentation: '是否开启滚动播放，内容长度溢出时默认开启',
				vals: {
					kind: 'Value',
					body: ['true', 'false'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['wrapable='],
				detail: 'wrapable',
				documentation: '是否开启文本换行，只在禁用滚动时生效',
				vals: {
					kind: 'Value',
					body: ['true', 'false'],
					detail: '',
					documentation: '',
				},
			},

			/**
         * Events
          事件名	说明	参数
          bind:click	点击通知栏时触发	event: Event
          bind:close	关闭通知栏时触发	event: Event
         */
			{
				kind: 'Event',
				body: ['bind:click'],
				detail: '点击通知栏时触发',
				documentation: 'event: Event',
				vals: null,
			},
			{
				kind: 'Event',
				body: ['bind:change'],
				detail: '当 direction="vertical" 时轮播切换时触发',
				documentation: 'event: Event',
				vals: null,
			},
			/**
         * 外部样式类
          类名	说明
          custom-class	根节点样式类
         */
			{
				kind: 'Field',
				body: ['t-class-content='],
				detail: 't-class-content',
				documentation: '根节点样式类',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['t-class='],
				detail: 't-class',
				documentation: '根节点样式类',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['t-class-prefix-icon='],
				detail: 't-class-prefix-icon',
				documentation: '根节点样式类',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['t-class-suffix-icon='],
				detail: 't-class-suffix-icon',
				documentation: '根节点样式类',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['t-class-operation='],
				detail: 't-class-operation',
				documentation: '根节点样式类',
				vals: null,
			},
		],
		/**
       * Slot
        名称	说明
        -	通知文本内容，仅在 text 属性为空时有效
        left-icon	自定义左侧图标
        right-icon	自定义右侧图标
       */
		slot: {
			kind: 'Value',
			body: ['left-icon', 'right-icon'],
			detail: 'NoticeBar 通知栏 Slot',
			documentation: `
        -	通知文本内容，仅在 text 属性为空时有效
        left-icon	自定义左侧图标
        right-icon	自定义右侧图标
        `,
			vals: null,
		},
	},
}
